package com.ps.helpdesk.model;

import java.io.Serializable;
import java.util.Set;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;

@Entity
public class Tipoocorrencia implements Serializable {
	@Id
	private int idtipoocorrencia;

	private String descricao;

	@OneToMany(mappedBy="idtipoocorrencia")
	private Set<Ocorrencia> ocorrenciaCollection;

	private static final long serialVersionUID = 1L;

	public Tipoocorrencia() {
		super();
	}

	public int getIdtipoocorrencia() {
		return this.idtipoocorrencia;
	}

	public void setIdtipoocorrencia(int idtipoocorrencia) {
		this.idtipoocorrencia = idtipoocorrencia;
	}

	public String getDescricao() {
		return this.descricao;
	}

	public void setDescricao(String descricao) {
		this.descricao = descricao;
	}

	public Set<Ocorrencia> getOcorrenciaCollection() {
		return this.ocorrenciaCollection;
	}

	public void setOcorrenciaCollection(Set<Ocorrencia> ocorrenciaCollection) {
		this.ocorrenciaCollection = ocorrenciaCollection;
	}

}
